# 导入Manager管理类
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from info import create_app, db




app = create_app("develop_config")

# 设置为Manager管理
manager = Manager(app)

# 创建数据库迁移对象
Migrate(app, db)

# 设置迁移指令
manager.add_command("db",MigrateCommand)


if __name__ == '__main__':
    manager.run()